<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="MSThemeCompatible" content="no" />
<title>添加Tour</title>
<link href="_{$adminbase}styles/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="_{$adminbase}scripts/ckeditor/ckeditor.js"></script>
<script src="_{$adminbase}scripts/ckeditor/sample.js" type="text/javascript"></script>
	<link href="_{$adminbase}scripts/ckeditor/sample.css" rel="stylesheet" type="text/css"/>


<body>
<div id="main">
<div class="xs_tl"> 
<div class="l"></div>
<div class="r"></div>
<div class="hackbox"></div>
</div>
<div>
</div>
_{if $errmsg!=''}
<div class="info">
_{$errmsg}
</div>
_{/if}
<div class="boxer">
<div id="OP_ListMaster">
<div class="header_1">添加Tour</div>
<div class="line_1"></div>
<form action="admin.php?action=tour-add" method="post" id="tour_form" name="tour_form">
	标题(title):<input type="text" name="title" id="title" value="" size="80" />
			价格(quotation):<input type="text" name="quotation" id="quotation" value="" />
	所属地区:<select name="district" id="district">
		<option value="" checked></option>
		_{if $district[0]==NULL}
		<script type="text/javascript">
			alert('还没有地区，请创建后再发布tour!');
			history.back(-1);
		</script>
		_{/if}
		_{section loop=$district name=option}
		<option value="_{$district[option].id}">_{$district[option].name}</option>
		_{/section}
	</select>
	<p>
	景点(Attractions):<input type="text" name="attractions" id="attractions" value="" size="100" />
	</p>
			<p>
				<label for="itinerary">
					行程介绍(Itinerary):</label><br/>
				<textarea class="ckeditor" cols="80" id="itinerary" name="itinerary" rows="10"></textarea>
<!--				<script type="text/javascript">
					CKEDITOR.replace( 'itinerary' );
				</script>-->
			</p>
			特点(Special Features):
			<textarea class="ckeditor" cols="80" id="special_features" name="special_features" rows="10"></textarea>
<!--				<script type="text/javascript">
					CKEDITOR.replace( 'special_features' );
				</script>-->
			</p>
			<p>
			服务(Service package includes):<textarea class="ckeditor" cols="80" id="service_includes" name="service_includes" rows="10"></textarea>
<!--				<script type="text/javascript">
					CKEDITOR.replace( 'service_includes' );
				</script>-->
			</p>
			<p>
			不包括的服务（Service package exclude）:<textarea class="ckeditor" cols="80" id="service_exclude" name="service_exclude" rows="10"></textarea>
<!--				<script type="text/javascript">
					CKEDITOR.replace( 'service_exclude' );
				</script>-->
			</p>
			<p>
				<input type="submit" value="提交(Submit)" />
			</p>
		</form>
<script type="text/javascript">
	function check_tour(){
	var tour_form = document.getElementById('tour_form');
	/*alert(tour_form.itinerary.innerText);
		if(tour_form.title.value!=''){
			if(tour_form.itinerary.innerText!=''){
				if(tour_form.district.value!=''){
					if(tour_form.quotation.value!=''){
						if(tour_form.special_features.innerText!=''){
							if(tour_form.service_includes.innerText!=''){
								if(tour_form.service_exclude.innerText!=''){
									tour_form.submit();
								}else{
									alert('请填写不包括的服务');
								}
							}else{
								alert('未填写包括的服务');
							}
						}else{
							alert('没填特点');
						}
					}else{
						alert('没填价格');
					}
				}else{
					alert('地区没选');
				}
			}else{
				alert('行程……');
			}
		}else{
			alert('没写标题');
		}*/
		tour_form.submit();
	}
</script>
</div>
</div>
<div class="xs_bl">
<div class="l"></div>
<div class="r"></div>
<div class="hackbox"></div>
</div>
</div>
</body>
</html>